﻿namespace FinalYear.Helpers
{
    /// <summary>
    /// Constant Class
    /// </summary>
    public class Constants
    {
        #region Frame Details

        public const int WINDOWSIZE = 10;

        public const int FRAMEWIDTH = 640;

        public const int FRAMEHEIGHT = 480;

        #endregion Frame Details

        #region Optical Flow and Collision Parameters

        public const int NUMBEROFFEATURES = 800;

        public const int MINIMUMCOLLISIONCOEFFICIENT = -2;

        public const int MAXIMUMCOLLISIONCOEFFICIENT = 2;

        public const int MAXIMUMHYPOTENUSE = 50;

        public const int TIMEBETWEENCOLLSIONS = 3;

        #endregion Optical Flow and Collision Parameters

        #region Sonar Sensor Details

        public const int MINIMUMSONARDETECTIONRANGE = 85;

        public const int BASESONARDETECTIONRANGE = 0;

        public const int SONARBAUDRATE = 115200;

        public const string DEFAULTCOMPORT = "COM3";

        #endregion Sonar Sensor Details
    }

    /// <summary>
    /// The region the current points are situated in
    /// can be either left, right or center
    /// </summary>
    public enum SCREENREGION
    {
        LEFT,
        RIGHT,
        CENTER,
        BALANCING
    }

    public enum Device
    {
        ALL,
        SONARLOW,
        CAMERALOW,
        CAMERAHI,
        PHONE,
        HAPTICFEEDBACKLEFT,
        HAPTICFEEDBACKRIGHT,
    }
}